package com.zhenfan.pattern.delegate;

/**
 * 任务
 *
 * @author wangmh
 * @create 2018-12-04 14:54
 **/
public class Task {

    /**
     * 默认被委托人
     */
    public static final String DEFAULT_TRUSTEE = "冒险者";

    public static final String DEFAULT_PRINCIPAL = "匿名委托人";

    public Task(String title, String content) {
        this.title = title;
        this.content = content;
    }

    /**
     * 任务名称
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 委托人
     */
    private String principal = DEFAULT_PRINCIPAL;

    /**
     * 被委托人
     */
    private String trustee = DEFAULT_TRUSTEE;

    /**
     * 任务金额
     */
    private double amount;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getTrustee() {
        return trustee;
    }

    public void setTrustee(String trustee) {
        this.trustee = trustee;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}
